// 此文件只包含全局样式或共享的基础样式
// 组件特定的样式已迁移到各自的组件中

// 共享的卡片样式属性
.glass-card {
  background-color: rgba(0, 0, 0, 0.021);
  backdrop-filter: blur(25px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.226);
  animation: fadeInUp 0.8s ease-in-out forwards;
  opacity: 0;
}

// 为不同的卡片设置不同的延迟
.glass-card:nth-child(1) { animation-delay: 0.1s; }
.glass-card:nth-child(2) { animation-delay: 0.2s; }
.glass-card:nth-child(3) { animation-delay: 0.3s; }
.glass-card:nth-child(4) { animation-delay: 0.4s; }
.glass-card:nth-child(5) { animation-delay: 0.5s; }
.glass-card:nth-child(n+6) { animation-delay: 0.6s; }

// 全局动画效果
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

// Home布局样式
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.Hometitle {
  font-size: 2.0rem;
  display: flex;
  justify-content: center;
  text-shadow: 0.25rem 0.25rem 0.5rem rgb(1, 162, 190);
  animation: fadeInUp 0.8s ease-in-out forwards;
  opacity: 0;
  animation-delay: 0.1s;
}

@media (max-width: 768px) {
  .Hometitle h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: 95%;
    padding: 0 10px;
  }
  
  .HometitleS h1 {
    font-size: 1.5rem;
  }
}